package cn.shujuhai.workflow.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;

@Component
public class LeaveApprovalTaskListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("领导审批任务已创建，任务ID：" + delegateTask.getId());
        // 可以在这里添加更多逻辑，例如发送通知等
    }
}